package de.negativrekord.blockworld.geometry;

import cc.creativecomputing.CCApp;
import cc.creativecomputing.CCApplicationManager;
import cc.creativecomputing.math.CCMath;
import cc.creativecomputing.math.CCVector2f;

public class SectorStripDemo extends CCApp {
	
	private SectorStrip _mySectorStrip;
	@Override
	public void setup() {
		_mySectorStrip = new SectorStrip(100);
	}
	
	int cnt = 0;
	@Override
	public void update (float theDeltaTime) {
//		if (frameCount%50==0) {
//			//dir = new CCVector2f(CCMath.random(-1,1), CCMath.random(-1,1));
//			dir = directions[cnt];
//			cnt = (cnt+1)%4;
//		}
		_mySectorStrip.move();
	}
	
	
	@Override
	public void draw() {
		g.clear();
		g.scale(0.7f);
		g.translate(-180,80,0);
		_mySectorStrip.draw(g);
	}
	
	public static void main (String[] args) {
		CCApplicationManager manager = new CCApplicationManager(SectorStripDemo.class);
		manager.settings().size(600,600);
		manager.start();
	}
}
